all: celex exceptions
celex: celex.idx celex.dict
	sort -T . celex.dict | tr '!' '\000' > celex
celex.idx: celex.dict
	sort -T . celex.dict | ../../bin/mul/index > celex.idx
exceptions: exceptions.idx exceptions.dict exceptionsNoVariants.dict
	sort exceptions.dict | tr '!' '\000' > exceptions
exceptions.idx: exceptions.dict exceptionsNoVariants.dict
	sort exceptions.dict | ../../bin/mul/index > exceptions.idx
exceptions.dict: exceptionsNoVariants.dict makefile
	sort exceptionsNoVariants.dict|gawk -f ../../bin/mul/uniq1 FS="!" OFS="!" |\
	gawk '/!!/{sub(/!/,"!<(>");\
	           gsub(/!!/,"<|>");\
                   sub(/!$$/,"<)>!")}\
              {print}' > exceptions.dict
clean:
	rm -f celex celex.idx exceptions exceptions.idx exceptions.dict

